package java8_28.oop.Javatest_2;

public class Circle extends Figure {
    private double r;

    public Circle(double r) {
        this.r = r;
    }

    @Override
    public double area() {
        return Math.PI*r*r;
    }

    @Override
    public double girth() {
        return Math.PI*2*r;
    }

    @Override
    public void show() {
        System.out.println("这个圆");
    }
}
